package com.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author pumpkin
 * @since 2021-05-17
 */
@Data
public class Marketlist extends Model<Marketlist> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 币种标识
     */
    private String symbol;
    /**
     * 币种名称
     */
    private String name;
    /**
     * 英文名称
     */
    @TableField("name_en")
    private String nameEn;
    /**
     * 中文名称
     */
    @TableField("name_cn")
    private String nameCn;
    /**
     * 交易对
     */
    private String pair;
    /**
     * 当前价格
     */
    private String rate;
    /**
     * 被兑换货币交易量
     */
    @TableField("vol_a")
    private String volA;
    /**
     * 兑换货币交易量
     */
    @TableField("vol_b")
    private String volB;
    /**
     * 被兑换货币
     */
    @TableField("curr_a")
    private String currA;
    /**
     * 兑换货币
     */
    @TableField("curr_b")
    private String currB;
    /**
     * 货币类型后缀
     */
    @TableField("curr_suffix")
    private String currSuffix;
    /**
     * 涨跌百分百
     */
    @TableField("rate_percent")
    private String ratePercent;
    /**
     * 24小时趋势 up涨 down跌
     */
    private String trend;
    /**
     * 币种供应量
     */
    private String supply;
    /**
     * 总市值
     */
    private String marketcap;
    /**
     * 趋势数据
     */
    private String plot;
    /**
     * 历史最高价
     */
    @TableField("high_price_all")
    private String highPriceAll;
    /**
     * 近一年最高价
     */
    @TableField("high_price_year")
    private String highPriceYear;
    /**
     * 近三个月最价
     */
    @TableField("high_price_thr_month")
    private String highPriceThrMonth;


    private String codefih;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSymbol() {
        return symbol;
    }

    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNameEn() {
        return nameEn;
    }

    public void setNameEn(String nameEn) {
        this.nameEn = nameEn;
    }

    public String getNameCn() {
        return nameCn;
    }

    public void setNameCn(String nameCn) {
        this.nameCn = nameCn;
    }

    public String getPair() {
        return pair;
    }

    public void setPair(String pair) {
        this.pair = pair;
    }

    public String getRate() {
        return rate;
    }

    public void setRate(String rate) {
        this.rate = rate;
    }

    public String getVolA() {
        return volA;
    }

    public void setVolA(String volA) {
        this.volA = volA;
    }

    public String getVolB() {
        return volB;
    }

    public void setVolB(String volB) {
        this.volB = volB;
    }

    public String getCurrA() {
        return currA;
    }

    public void setCurrA(String currA) {
        this.currA = currA;
    }

    public String getCurrB() {
        return currB;
    }

    public void setCurrB(String currB) {
        this.currB = currB;
    }

    public String getCurrSuffix() {
        return currSuffix;
    }

    public void setCurrSuffix(String currSuffix) {
        this.currSuffix = currSuffix;
    }

    public String getRatePercent() {
        return ratePercent;
    }

    public void setRatePercent(String ratePercent) {
        this.ratePercent = ratePercent;
    }

    public String getTrend() {
        return trend;
    }

    public void setTrend(String trend) {
        this.trend = trend;
    }

    public String getSupply() {
        return supply;
    }

    public void setSupply(String supply) {
        this.supply = supply;
    }

    public String getMarketcap() {
        return marketcap;
    }

    public void setMarketcap(String marketcap) {
        this.marketcap = marketcap;
    }

    public String getPlot() {
        return plot;
    }

    public void setPlot(String plot) {
        this.plot = plot;
    }

    public String getHighPriceAll() {
        return highPriceAll;
    }

    public void setHighPriceAll(String highPriceAll) {
        this.highPriceAll = highPriceAll;
    }

    public String getHighPriceYear() {
        return highPriceYear;
    }

    public void setHighPriceYear(String highPriceYear) {
        this.highPriceYear = highPriceYear;
    }

    public String getHighPriceThrMonth() {
        return highPriceThrMonth;
    }

    public void setHighPriceThrMonth(String highPriceThrMonth) {
        this.highPriceThrMonth = highPriceThrMonth;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Marketlist{" +
        ", id=" + id +
        ", symbol=" + symbol +
        ", name=" + name +
        ", nameEn=" + nameEn +
        ", nameCn=" + nameCn +
        ", pair=" + pair +
        ", rate=" + rate +
        ", volA=" + volA +
        ", volB=" + volB +
        ", currA=" + currA +
        ", currB=" + currB +
        ", currSuffix=" + currSuffix +
        ", ratePercent=" + ratePercent +
        ", trend=" + trend +
        ", supply=" + supply +
        ", marketcap=" + marketcap +
        ", plot=" + plot +
        ", highPriceAll=" + highPriceAll +
        ", highPriceYear=" + highPriceYear +
        ", highPriceThrMonth=" + highPriceThrMonth +
        "}";
    }
}
